Gentee Programming Language > Documentation > Libraries | Download documentation |
Variables of the str type allow you to work with strings.
Operations defined for the variable of str type are listed below. The second column contains possible statements where typename is a variable or an expression of the specified type.
Operation Syntax Return type Comments [] byte Getting byte i from the string. * uint Get the size of a string. = str Copying data from one string to another. += str Adding data to the string. + str Putting two strings together and creating a resulting string. == uint Comparison operations. != uint - < uint - > uint - <= uint - >= uint - %== uint Case-insensitive comparison operations. %!= uint - %< uint - %> uint - %<= uint - %>= uint - @
str Adding another string or the result of a text function to a string.
str.append | Data addition |
str.appendch | Добавить символ |
str.char2oem | Converting from the Windows encoding into the DOS encoding |
str.clear | Clearing a string |
str.copy | Copying |
str.crc | Calculating the checksum |
str.del | Deleting a substring |
str.eqlen | Comparison |
str.fill | Filling a string |
str.fillspacel | Filling with spaces |
str.findch | Finding a character |
str.findchfrom | Finding a character with an offset |
str.findchnum | Finding character number i |
str.insert | Insertion |
str.islast | Checking the final character |
str.lines | Splitting into lines |
str.lower | Converting to lowercase |
str.lowersub | Converting a substring to lowercase |
str.oem2char | Converting from DOS into Windows |
str.print | Output |
str.ptr | Get the pointer to data |
str.quote | Enclosing by quotation marks |
str.read | Reading from a file |
str.repeat | Repeating a string |
str.replace | Replacing in a string |
str.replacech | Replace a character |
str.reserve | Reserving space |
str.search | Substring search |
str.setlen | Setting a size |
str.setlenptr | Determining the size |
str.split | Splitting a string |
str.substr | Getting a substring |
str.trim | Trimming a string |
str.trimrspace | Deleting spaces on the right |
str.trimspace | Deleting spaces on both sides |
str.trimsys | Deleting spaces and special characters on both sides |
str.upper | Converting to uppercase |
str.uppersub | Converting a substring to uppercase |
str.write | Writing to a file |
Initializing the search pattern | Creating data search pattern |
String search | Find a string in another string |
str.faddname | Adding a name |
str.fappendslash | Adding a slash |
str.fdelslash | Deleting the final slash |
str.ffullname | Getting the full name |
str.fgetdir | Getting the directory owner's name |
str.fgetdrive | Getting the name of a disk |
str.fgetparts | Getting name components |
str.fnameext | Getting the name of a file |
str.fsetname | Modifying the name of the file |
str.fsetparts | Compounding or modifying the name |
str.fsetext | Modifying the extension |
str.fsplit | Getting the directory and name of a file |
str.fwildcard | Wildcard check |
char2str | Converting the code of a character into a string |
hex2strl | Converting an integer in the hexadecimal form |
hex2stru | Converting an integer in the hexadecimal form |
Printing |
![]() |
![]() Copyright © 2004-2006 Gentee Inc. All rights reserved. ![]() |